use cross_rs::{memory::bytes_io::BytesIO, IResult};



pub fn bytesio_from_file(name: String, file: &str) -> IResult<BytesIO>  {
    let bytes = crate::disk::file_io::read_bytes(file)?;
    Ok(BytesIO::from_bytes(name, bytes))
}